<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<div class="line-big">
	<div class="xl12">
		<div class="panel border-back" id="write_comment_info_div">
			<div class="panel-body text-center">
				<h1>
					<strong>我的评论</strong>
				</h1>
			</div>
			<div class="panel-foot bg-white border-back">
				<div class="line-big margin-big-top">
					<div class="xl7">
						<div class="label">
							<label for="peopleName">评价内容:</label>
						</div>
						<div class="field">${comment.commentContent }</div>
					</div>
					<div class="xl5">
						<div class="label">
							<label for="">描述相符：</label> <span data-score="${comment.commentDescriptionStar }" id="commentDescriptionStar" class="star"></span>
						</div>
						<div class="label">
							<label for="">服务态度：</label> <span data-score="${comment.commentServiceStar }" id="commentServiceStar" class="star"></span>
						</div>
						<div class="label">
							<label for="">发货速度：</label> <span data-score="${comment.commentDeliverStar }" id="commentDeliverStar" class="star"></span>
						</div>
						<div class="label">
							<label for="">物流速度：</label> <span data-score="${comment.commentLogisticsStar }" id="commentLogisticsStar" class="star"></span>
						</div>
						<div class="label">
							<label for="">快递员态度：</label> <span data-score="${comment.commentCourierStar }" id="commentCourierStar" class="star"></span>
						</div>
					</div>
				</div>
				<c:if test="${ comment.commentReply!=null}">
					<div class="line-big margin-big-top">
						<div class="xl7">
							<div class="label">
								<label for="peopleName">卖家回复:</label>
							</div>
							<div class="field">${comment.commentReply }</div>
						</div>
						<div class="xl5"></div>
					</div>
				</c:if>
			</div>
		</div>
	</div>
</div>
<div style="display: none" id="time_temp_div"></div>

<!-- 星级评分效果插件 -->
<script type="text/javascript" src="js/jquery.raty.js"></script>
<script type="text/javascript">
	$(function()
	{
		$(".star").each(function()
		{
			var star_obj = $(this);
			star_obj.raty(
			{
				hints : [ '失望', '不满', '一般', '满意', '惊喜' ],
				path : 'images/',
				number : 5,
				size : 32,
				score : star_obj.attr("data-score"),
				readOnly : true
			});
		});
	});
</script>